package com.dh.project.model;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.util.Date;
import java.util.List;

/**
 * Created by 赵鹏程 on 2017/7/22.
 */
@TableName("insurance")
public class Insurance {

    /**
     * array : [{"name":"水系统","status":0},{"name":"VRV多联机","status":1}]
     * type : 中央空调
     */

    private String name;

    private int status;

    private String currDate;

    private String lastDate;
    @TableId(value = "id",type = IdType.AUTO)
    private int id;

    private int address_id;

    private String type;

    private Long firstTime;

    private Long secondTime;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAddress_id() {
        return address_id;
    }

    public void setAddress_id(int address_id) {
        this.address_id = address_id;
    }

    public String getCurrDate() {
        return currDate;
    }

    public void setCurrDate(String currDate) {
        this.currDate = currDate;
    }

    public String getLastDate() {
        return lastDate;
    }

    public void setLastDate(String lastDate) {
        this.lastDate = lastDate;
    }

    public Long getFirstTime() {
        return firstTime;
    }

    public void setFirstTime(Long firstTime) {
        this.firstTime = firstTime;
    }

    public Long getSecondTime() {
        return secondTime;
    }

    public void setSecondTime(Long secondTime) {
        this.secondTime = secondTime;
    }

    @Override
    public String toString() {
        return "Insurance{" +
                "name='" + name + '\'' +
                ", status=" + status +
                ", currDate='" + currDate + '\'' +
                ", lastDate='" + lastDate + '\'' +
                ", id=" + id +
                ", address_id=" + address_id +
                ", type='" + type + '\'' +
                '}';
    }
}
